import Vue from 'vue'
const axios = Vue.prototype.$axios
const getPostList = (data) => {
  return axios.get('/public/list', data)
}
const searchList = (data) => {
  return axios.get('/public/searchList', data)
}
const getPost = (data) => {
  return axios.get('/public/getPost', data)
}
const getComment = (data) => {
  return axios.get('/public/getCommentList', data)
}
const getReply = (data) => {
  return axios.get('/public/getReplyList', data)
}
const addPost = (data) => {
  return axios.post('/user/wxAddPost', data)
}
const addComment = (data) => {
  return axios.post('/user/wxAddComment', data)
}
const addReply = (data) => {
  return axios.post('/user/wxAddReply', data)
}
const setHands = (data) => {
  return axios.get('/user/hands', data)
}
const getBgm = (data) => {
  return axios.get('/public/getBgm', data)
}
const getLocation = (data) => {
  return axios.get('/public/getLocation', data)
}

export {
  getPostList,
  searchList,
  getPost,
  getComment,
  getReply,
  addPost,
  addComment,
  addReply,
  setHands,
  getBgm,
  getLocation
}